package com.cqsw.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Classname Goods
 * @Description TODO
 * @Date 2022/6/13 12:49
 * @Created by Smith.Liu
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Goods implements Serializable {
    private Integer id;
    private String goodnum;
    private String name;
    private String category;
    private String keyword;
    private String picture;
    private String details;
    private String price;
    private Integer isOnState;
    private Integer sellCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date onSaleTime;
    private Integer categoryId;
    private Integer goodsId;

}
